of
Returns the Rect instance for the given width and height values.
Throws
when width or height is negative
Returns the Rect instance for the given x, y, width, and height values.
Throws
when width or height is negative
Returns the Rect instance for the empty origin and the given size value.
Returns the Rect instance for the given origin and size values.